<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Forgot password page</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $(".form").submit(function() {
            var email = $("#email").val();
            if (email.length == 0) {
                $("#email-error").css("display", "inline-block");
                return false;
            } else {
            	$("#email-error").css("display", "none");
            }  
            return true;
        });
    });
    </script>
    
</head>
<body>
	<div class="wrapper wcol-3">
        <div class="header"><h3 class="center">Forgot password</h3></div>
        <div class="content">
            <form action="admin" method="post" class="form">
                <div class="form__group">
                    <label for="email">Your Email <span id="email-error" style="display: none; color: red;">required field</span></label>
                    <input type="text" class="input" id="email" name="email_forgot" />
                </div>
                <div class="form__group">
                    <input type="submit" class="btn" value="Reset password" />
                    <a href="admin" class="right">Login</a>
                </div> 
                  
                <div class="clear"></div>
            </form>

            <br />
           
        </div>
        <div class="footer"></div>
    </div>
</body>
</html>